#include <iostream>
using namespace std;
int main(){
    int x,y,z=0 ;
    cin>>x;
    z=x;
    while (x/10!=0){
        y+=x%10;
        x/=10;
        y*=10;
    }
    y+=x;
    if(y==z)
        cout<<"yes";
    else
        cout<<"no";
    return  0;


}
